#! /bin/bash
echo "开始配置pip镜像..."
mkdir ~/.pip
echo "[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=mirrors.aliyun.com" > ~/.pip/pip.conf
echo "pip镜像已配置：~/.pip/pip.conf"

# 克隆项目
echo "项目克隆中..."
git clone https://gitee.com/shelbyyang/yolo-ladcs.git
echo "项目克隆成功！"
cd yolo-ladcs
echo "开始安装项目依赖..."
pip install -r requirements.txt
echo "项目依赖安装完毕！请上传数据集压缩包到项目datasets文件夹"